package com.vcc.service.client.vo.cardholder;

import com.vcc.data.entity.Cardholder;
import com.vcc.service.client.vo.baseVo.BaseVo;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

@Data
@Getter
@Setter
public class CardholderVo  extends BaseVo implements Serializable {

    private Long userId;

    private String account;

    private String firstName;

    private String lastName;

    private String country;

    private String province;

    private String city;

    private String area;

    private String postCode;

    private String address;

    private String phone;

    private String email;

    private String remark;

    private Integer status;

    private String birthday;

    private String mobilePrefix;

    public CardholderVo() {
    }

    public CardholderVo(Cardholder cardholder){
        super.setId(cardholder.getId());
        this.userId = cardholder.getUserId();
        this.firstName = cardholder.getFirstName();
        this.lastName = cardholder.getLastName();
        this.country = cardholder.getCountry();
        this.province = cardholder.getProvince();
        this.city = cardholder.getCity();
        this.area = cardholder.getArea();
        this.postCode = cardholder.getPostCode();
        this.address = cardholder.getAddress();
        this.phone = cardholder.getPhone();
        this.email = cardholder.getEmail();
        this.remark = cardholder.getRemark();
        this.status = cardholder.getStatus();
        this.birthday = cardholder.getBirthday();
        this.mobilePrefix = cardholder.getMobilePrefix();
    }
}
